Release 10.1A: OpenEdge Development:
Progress Dynamics Getting Started
Changing the layout of your dynamic window
Most Progress Dynamics windows and pages use relative layouts to determine object positions and sizes. When you define a template for a container or page layout, you specify how the objects are laid out relative to one another. You can also specify if objects should be resized horizontally or vertically when the container is resized. By default, browses resize in both dimensions, to show more fields and more rows; viewers do not resize; and toolbars resize horizontally. An object’s dynamic properties allow you to individually configure resizing.
The Parent-Child window apportioned the available space for the two browses, after laying out the toolbar and the Tab Folder. If you resize the window, the browses resize. You can easily change these characteristics to get a different arrangement.
![]()
To change the page layout:
- Choose Build
Container Builder from the AppBuilder main window. The Container Builder appears.
- Type oeCustFoldWin in the Container field and press the TAB key.
- Choose the Orders/Lines tab.
- Choose the Show visual object button to see your two dynamic Browses.
- Select the artolfullb browse in Cell B-1.
Remember that this grid does not reflect absolute column and row position, but the relative ordering of objects from top to bottom and from left to right.
- Drag the artolfullb browse to Cell A-2. Note that as you drag the object, the grid highlights the possible places to which you can move it, as shown:
![]()
- Choose Save, and exit the Container Builder.
You must shut down running objects before making changes. An object’s definition is only records in the Repository database. The Dynamic Launcher by default clears the client-side cache of those records each time it is run. If you want to see the effects of your changes, you have to get back out to the Dynamic Launcher before rerunning a window.
Remember also that you must run the Customer Browse,
oeCustBrowseWin, from the Dynamic Launcher rather than trying to run the Customer Orders Browse,oeCustFoldWin, directly. The folder window needs acustomer_objkey as input when it is launched, and it generates errors if it is run directly.- Choose Compile
Dynamic Launcher. The Dynamic Launcher appears.
- Type oeCustBrowseWin in the Name of Container to Launch field, and choose Run.
- Double-click on a customer record to launch the Customer Orders Browse. Your Orders/Lines page with the new layout should look like the following screen:
![]()
Note that the Order Browse is now on top of the OrderLine Browser. The dynamic window layout program takes care of figuring out the sizes and positions for you, based on your new relative layout.
- Close your application windows and the Dynamic Launcher.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |